package net.sxnic.ugr.menu.action;

import java.util.List;

import net.sxnic.comm.CommActionSupport;
import net.sxnic.ugr.menu.Menu;
import net.sxnic.ugr.menu.MenuManager;

import org.springframework.beans.factory.annotation.Autowired;

@SuppressWarnings("serial")
public abstract class MenuAction extends CommActionSupport {

	protected Menu menu;

	@Autowired
	protected MenuManager menuManager;
	
	protected Menu parent;

	protected List<Menu> list;
	
	protected String root;	

	public Menu getParent() {
		return parent;
	}

	public void setParent(Menu parent) {
		this.parent = parent;
	}

	public List<Menu> getList() {
		return list;
	}

	public void setList(List<Menu> list) {
		this.list = list;
	}

	public String getRoot() {
		return root;
	}

	public void setRoot(String root) {
		this.root = root;
	}

	public Menu getMenu() {
		return this.menu;
	}

	public void setMenu(Menu menu) {
		this.menu = menu;
	}

	public MenuManager getMenuManager() {
		return this.menuManager;
	}

	public void setMenuManager(MenuManager menuManager) {
		this.menuManager = menuManager;
	}
}
